package com.elinshaw.netty4


import com.elinshaw.netty4.config.NettyServer
import org.springframework.boot.CommandLineRunner
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication

@SpringBootApplication
class Netty4Application implements CommandLineRunner {

    static void main(String[] args) {
        SpringApplication.run(Netty4Application, args)
    }

    @Override
    void run(String... args) throws Exception {
        new NettyServer(8081, "mySocketServer").start()
    }

}
